package com.example.libraryapp.fragment.home;

import com.example.libraryapp.bean.BannerBean;
import com.example.libraryapp.bean.Book;
import com.example.libraryapp.bean.response.BaseResponse;
import com.example.libraryapp.network.base.IBaseView;

import java.util.List;

/**
 * @author 伍凯铭
 * @since 2020/6/20
 */
public interface HomeContract {

    interface View extends IBaseView {
        void showAllBook(BaseResponse<List<Book>> response);

        void showBanner(BaseResponse<List<BannerBean>> response);
    }

    interface Presenter {
        void getBookByCondition(String condition);

        void getBanner();
    }
}
